package com.yx.feign.api;

import com.yx.vo.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Classname UserService
 * @Date 2021/07/06 12:01
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "shop-user", // 服务名称
        path = "/user" // namespace
)
public interface UserService {
    @GetMapping("/getUserByName")
    Customer getUserByName(@RequestParam("username") String username);

    @PostMapping("/addUser")
    public Boolean addUser(@RequestBody Customer user);

    @GetMapping("/getUserByOauthId")
    Customer getUserByOauthId(@RequestParam("uuid") String uuid);
}